<template>
	<view class="friendItem">
		<view class="left">
			<view class="avator">
				<image :src="item.avator" mode="aspectFill"></image>
			</view>
			<view class="nickname">{{item.nickname}}</view>
		</view>
		<view class="right">
			<!-- <uni-badge text="2" type="error"></uni-badge> -->
		</view>
	</view>
</template>

<script setup>
defineProps(['item'])
</script>

<style lang="scss" scoped>
	.friendItem {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 107rpx;

		.left {
			display: flex;
			justify-content: space-between;
			align-items: center;

			.avator {
				width: 76rpx;
				height: 76rpx;
				border-radius: 50%;
				overflow: hidden;
				margin-right: 20rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.nickname {
				font-size: 28rpx;
			}
		}
	}
</style>